package com.oa.bean.work;

import java.math.BigDecimal;

import com.oa.bean.finance.Expenditure;

/*
 * 物品申购明细表
 */
public class Applygoods {
	private int gid;// 申购明细id
	private int aid;// 申购编号
	private String goodsname;// 申购物品名称
	private int gcounts;// 申购物品数量
	private String gunit;// 单位
	private BigDecimal gprice;// 预计单价
	private BigDecimal gtotal;// 预计总价
	private String gpurpose;// 用途

	private Apply apply;// 一个申购明细对应一个申购
	
	private Expenditure expenditure;

	public Expenditure getExpenditure() {
		return expenditure;
	}

	public void setExpenditure(Expenditure expenditure) {
		this.expenditure = expenditure;
	}

	public Apply getApply() {
		return apply;
	}

	public void setApply(Apply apply) {
		this.apply = apply;
	}

	public Applygoods() {
	}

	public Applygoods(int gid, int aid, String goodsname, int gcounts, String gunit, BigDecimal gprice,
			BigDecimal gtotal, String gpurpose) {
		super();
		this.gid = gid;
		this.aid = aid;
		this.goodsname = goodsname;
		this.gcounts = gcounts;
		this.gunit = gunit;
		this.gprice = gprice;
		this.gtotal = gtotal;
		this.gpurpose = gpurpose;
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public int getAid() {
		return aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public String getGoodsname() {
		return goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public int getGcounts() {
		return gcounts;
	}

	public void setGcounts(int gcounts) {
		this.gcounts = gcounts;
	}

	public String getGunit() {
		return gunit;
	}

	public void setGunit(String gunit) {
		this.gunit = gunit;
	}

	public BigDecimal getGprice() {
		return gprice;
	}

	public void setGprice(BigDecimal gprice) {
		this.gprice = gprice;
	}

	public BigDecimal getGtotal() {
		return gtotal;
	}

	public void setGtotal(BigDecimal gtotal) {
		this.gtotal = gtotal;
	}

	public String getGpurpose() {
		return gpurpose;
	}

	public void setGpurpose(String gpurpose) {
		this.gpurpose = gpurpose;
	}

	@Override
	public String toString() {
		return "Applygoods [gid=" + gid + ", aid=" + aid + ", goodsname=" + goodsname + ", gcounts=" + gcounts
				+ ", gunit=" + gunit + ", gprice=" + gprice + ", gtotal=" + gtotal + ", gpurpose=" + gpurpose + "]";
	}

}
